package com.party.core.dao.read.circle;

import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.circle.CircleApply;
import com.party.core.model.member.Member;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * CircleApplyReadDao
 *
 * @author Juliana
 * @data 2016-12-14
 */
@Repository
public interface CircleApplyReadDao extends BaseReadDao<CircleApply> {
    List<Map<String,Object>> webListPage(@Param(value="apply")CircleApply apply, @Param(value="params")Map<String, Object> params, Page page);

    /**
     * 查询某机构下的所有圈子报名者
     * @param partnerId
     * @return
     */
    List<Member> getCircleApplicantsByPartnerId(@Param(value="partnerId") String partnerId);
}
